import { createRouter, createWebHashHistory } from 'vue-router'

import Layout from '../views/member/Layout.vue';
import Home from '../views/home/index.vue';
// 路由规则
const routes = [
  // 一级路由布局容器
  {
    path:'/',
    component:Layout,
    children:[
      {path:'/',component:Home}
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
